const Controller = require('egg').Controller;

class DesignsController extends Controller {

  async create() {
    const { ctx } = this;
    try {
        const data = await ctx.service.design.createDesign(ctx.request.body);
        ctx.body = {
          code: 200,
          data,
          success: true,
          msg: '',
        }
      } catch (error) {
        throw error;
      }
  }

}

module.exports = DesignsController;
